package com.blog.system.domain.blog;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.blog.common.annotation.Excel;
import com.blog.common.core.domain.BaseEntity;

/**
 * 博客文章对象 blog_article
 * 
 * @author shibalover
 * @date 2024-03-31
 */
public class BlogArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博客文章id */
    private Long articleId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章简介 */
    @Excel(name = "文章简介")
    private String descr;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 文章封面，路径存储 */
    @Excel(name = "文章封面，路径存储")
    private String cover;

    /** 文章标签，数组字符串存储 */
    @Excel(name = "文章标签，数组字符串存储")
    private String tags;

    /** 发布人id */
    @Excel(name = "发布人id")
    private Long userId;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long readCount;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long commentsCount;

    /** 博客分类id */
    @Excel(name = "博客分类id")
    private Long categoryId;

    /** 文章状态 */
    @Excel(name = "文章状态")
    private Character status;

    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescr(String descr) 
    {
        this.descr = descr;
    }

    public String getDescr() 
    {
        return descr;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }
    public void setCommentsCount(Long commentsCount) 
    {
        this.commentsCount = commentsCount;
    }

    public Long getCommentsCount() 
    {
        return commentsCount;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public Character getStatus() {
        return status;
    }

    public void setStatus(Character status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("title", getTitle())
            .append("descr", getDescr())
            .append("content", getContent())
            .append("cover", getCover())
            .append("tags", getTags())
            .append("userId", getUserId())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("readCount", getReadCount())
            .append("commentsCount", getCommentsCount())
            .append("categoryId", getCategoryId())
            .append("status", getStatus())
            .toString();
    }
}
